package com.zhuiyun.project.cyclingapplet.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author guojingzhi
 * @since 2024-07-16
 */
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论ID (胡家浩)
     */
    @TableId("comment_id")
    private Integer commentId;

    /**
     * 活动ID
     */
    private Integer activityId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 评论内容
     */
    private String commentContent;

    /**
     * 评论时间
     */
    private LocalDateTime commentTime;

    /**
     * 父级评论ID
     */
    private Integer fatherCommentId;

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public LocalDateTime getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(LocalDateTime commentTime) {
        this.commentTime = commentTime;
    }

    public Integer getFatherCommentId() {
        return fatherCommentId;
    }

    public void setFatherCommentId(Integer fatherCommentId) {
        this.fatherCommentId = fatherCommentId;
    }

    @Override
    public String toString() {
        return "Comment{" +
        "commentId = " + commentId +
        ", activityId = " + activityId +
        ", userId = " + userId +
        ", commentContent = " + commentContent +
        ", commentTime = " + commentTime +
        ", fatherCommentId = " + fatherCommentId +
        "}";
    }
}
